package com.ppm.server.base.conf;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import tk.mybatis.spring.mapper.MapperScannerConfigurer;

/**
 * @author KwokChiKit
 * @date 2021/4/15 17:38
 * @Description mapper配置
 */
@Configuration
public class TkMybatisConf {

    @Bean
    public MapperScannerConfigurer mapperScannerConfigurer(){
        MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
        mapperScannerConfigurer.setBasePackage("com.ppm.server.*.mapper");
        return mapperScannerConfigurer;
    }
}
